function getTimeFunc(){ //获取日期
  let curr_time = new Date();
  let year = curr_time.getFullYear() + '-',
      month = (curr_time.getMonth() + 1 < 10 ? '0' + (curr_time.getMonth() + 1) : curr_time.getMonth() + 1) + '-',
      day = curr_time.getDate() < 10 ? '0' + curr_time.getDate() : curr_time.getDate() + ' ',
      hour = curr_time.getHours() < 10 ? '0'+curr_time.getHours() : curr_time.getHours() + ':',
      min = curr_time.getMinutes() < 10 ? '0'+curr_time.getMinutes() : curr_time.getMinutes(),
      time = year + month + day + hour + min;
  return time;
}


export default {
  install: function (Vue) {
    Vue.prototype.getTime = () => getTimeFunc()
  },
}
